package com.leyou.trade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.trade.dto.OrderFormDTO;
import com.leyou.trade.entity.Order;

import java.util.Map;

public interface OrderService extends IService<Order> {

    /**
     * 创建订单
     */
    Long createOrder(OrderFormDTO orderDTO);

    String getPayUrl(Long orderId);

    void handleNotify(Map<String, String> data);

    void evictOrderIfNecessary(Long orderId);
}
